package com.example.denglu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.denglu.dto.UserExcelDto;
import com.example.denglu.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import com.example.denglu.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<UserExcelDto> findAll();

    User selectByUsername(@Param("username") String username);

    int insertSelective(UserVo user);


    @Select("select password from user where username = #{username,jdbcType=VARCHAR}")
   String  selectPasswordByUsername(@Param("username") String username);

}
